import request from '@/common/utils/request'

export function Login() {
  // 上送报文字段定义
  this.data = {
    LoginMode: '1', // 登录方式
    UserNum: '',
    AuthData: '',
    AuthFlag: '0', // 认证标志
    BranchNum: ''
    // userNo: '',
    // loginMethod: '1',
    // loginPassword: ''
  }
  // 交易码，每次新建此文件，修改此处为对应的交易码即可
  this.TransServiceCode = 'ib.sys.lin004';
}

export function GetInfo() {
  this.data = {
    userId: ''
  }
  this.TransServiceCode = 'aums.v114.login_userinfo_query';
}

export function logout() {
  return request({
    url: '/user/logout'
  })
}

export function checkUserName() {
  this.data = {
    UserNum: ''
  }
  this.TransServiceCode = 'ib.sys.lin001'
}

export function GetMenuList() {
  this.data = {
    MenuViewNum: '010'
  }
  this.TransServiceCode = 'ib.sys.lin005'
}

export function GetKey() {
  this.data = {
    BusiOper: 'Q'
  }
  this.TransServiceCode = 'UPMS_TV003';
}
